<?
	//start vars
	$idioma = $this->registry['lingua']->getLingua_id();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<HTML lang="PT">

<?
 if(isset($extra_scripts))
 	foreach($extra_scripts as $script)
 	{
 		echo $script;
 	}
?>
<HEAD>
<link rel="SHORTCUT ICON" href="http://www.forsale.org/favicon.ico"/>
<title><? if(isset($page_titulo)){ echo $page_titulo; } else { echo TITULO; }; ?></title>
<link rel="stylesheet" href="<?=$this->registry['home_path']?>public/css/common.css" type="text/css" media="screen" charset="utf-8" />
<link rel="stylesheet" href="<?=$this->registry['home_path']?>public/css/common_print.css" type="text/css" media="print" charset="utf-8" />
<link rel="stylesheet" href="<?=$this->registry['home_path']?>public/css/<?=$this->registry['Uri']->getURIsegmento(0) . '.css'?>" type="text/css" media="screen" charset="utf-8" />
<link rel="stylesheet" href="<?=$this->registry['home_path']?>public/css/<?=$this->registry['Uri']->getURIsegmento(0) . '_print.css'?>" type="text/css" media="screen" charset="utf-8" />
<?
 if(isset($extra_links))
 	foreach($extra_links as $link)
 	{
 		echo $link;
 	}
 ?>
<meta name="revisit-after" content="15 days" />
<meta name="robots" content="all" />
<meta name="distribution" content="global" />
<!--[if IE 6]>
<link rel="stylesheet" type="text/css" href="/public/css/ie6.css" />
<![endif]-->

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv='expires' content='-1' />
<meta http-equiv= 'pragma' content='no-cache' />

</head>
<body> 
 <div id="body_wrapper">
  <div id="banner">
   <div style="float: left; margin-left: 8px;"> <a style="font-weight: bold; text-decoration: none; color: #444;"href="/">ForSale</a></div>
   <ul>
	<?if(isset($_SESSION['neb_username'])){ echo "<li><b>" . $_SESSION['neb_username'] . "</b> | </li>"; } ?>
	<?if(isset($_SESSION['neb_username'])){ echo "<li><a href='/perfil'>Perfil</a> | </li>"; } ?> 
	<?if(isset($_SESSION['neb_username'])){ echo "<li><a href='/perfil/favoritos'>Favoritos</a> | </li>"; } ?>
	<li><a href="/cadeiras">Cadeiras</a> | </li>
	<li><a href="/pesquisar">Pesquisar</a> | </li>
	<li><a href="/classificados">Classificados</a> | </li>
	<li><?if(isset($_SESSION['neb_username'])){ echo "<a href='/logout'>Logout</a></li>"; } else { echo "<a href='/login'>Login</a>"; } ?></li> 
   </ul>
  </div>
  <div id="corpo_html"> 